'''
4.3 类
'''

class People(object):
    # 初始化方法
    def __init__(self, name, age):
        self.name = name
        self.age = age

    # 类中的方法
    def talk(self):
        print(f'你好{self.name}，今年我{self.age}岁')

# 实例化
p1 = People('二两', '30')
p2 = People('张三', '28')
print(p1.name)
p2.talk()

'15103621959'